#include "Http.hpp"


void Useage(const std::string &s)
{
    std::cout << "Useage" << ":\n\t" << s << " port\n";
}


int main(int argc, char *argv[])
{
    std::cout << "pid : " << getpid() << std::endl;
    if (argc != 2)
    {
        Useage(argv[0]);
        exit(0);
    }
    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<HttpServer> hsvr = std::make_unique<HttpServer>(port);
    hsvr->Run();

    return 0;
}